package com.mall.order.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.order.model.OrderSku;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 订单明细表 服务类
 * </p>
 *
 * @author Darren
 * @since 2022-08-29
 */
public interface IOrderSkuService extends IService<OrderSku> {
    /**
     * 新增
     *
     * @param brand
     * @return
     */
    boolean addOrderSku(OrderSku ordersku);

    /**
     * 根据id删除
     *
     * @param id
     * @return
     */
    boolean deleteById(String id);

    /**
     * 更新
     *
     * @param brand
     * @return
     */
    boolean updateOrderSku(OrderSku ordersku);

    /**
     * 根据id查询
     *
     * @param id
     * @return
     */
    OrderSku getById(String id);

    /**
     * 根据条件查询全部数据
     *
     * @param brand
     * @return
     */
    List<OrderSku> selectList(OrderSku ordersku);

    /**
     * 分页查询
     *
     * @param brand
     * @return
     */
    Page<OrderSku> selectPage(Page<OrderSku> page, OrderSku ordersku);
}
